package cn.green.core.adapt.models.field.abs;

import cn.green.core.model.QFieldModel;
import cn.green.core.model.QTableModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.lang.reflect.Field;

/**
 * @author wang.yishu
 * @version 1.0
 * @className AbsOrmField
 * @description TODO
 * @date 2025/5/15 10:46
 */
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class AbsOrmField extends QFieldModel {
    protected Class<?> clazz;
    protected QTableModel table;
    protected Field field;
    protected String fixState;//是否固定字段
    public AbsOrmField(Class<?> clazz, QTableModel table, Field field) {
        this.clazz = clazz;
        this.table = table;
        this.field = field;
        this.fixState = "1";
    }
    public AbsOrmField(){}
}
